using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Facebook.Service;
using FriendsNearby.Services;
using FriendsNearby.Services.Facebook;

namespace FriendsNearby.Fbml
{
    public partial class PostAdd : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (fbApplication.IsApplicationAdded)
            {
				var system = new FriendsNearbySystem();

				var socialService = system.GetService<ISocialNetworkService, FacebookSocialNetworkService>();

				
				socialService.RegisterFacebookUser( fbApplication.UserID, fbApplication.Session.SessionKey);
            }
        }
    }
}